#region (c) 2009 Abdullin.com and Contributors

// Copyright (c) 2009 Abdullin.com and Contributors
// Site: http://abdullin.com/ncouch
// This code is released under the terms of the new BSD licence

#endregion

using System.IO;

namespace NCouch
{
	public static class ExtensionsForISerializer
	{
		public static T Deserialize<T>(this ISerializer serializer, Stream reader)
		{
			return (T) serializer.Deserialize(reader, typeof (T));
		}

		public static void Serialize<T>(this ISerializer serializer, Stream writer, T item)
		{
			serializer.Serialize(writer, typeof (T), item);
		}
	}
}